package cc.cc4414.cc03.sys.service.impl;

import cc.cc4414.cc03.sys.entity.Authority;
import cc.cc4414.cc03.sys.mapper.AuthorityMapper;
import cc.cc4414.cc03.sys.service.IAuthorityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.stereotype.Service;

/**
 * <p>
 * 权限表 服务实现类
 * </p>
 *
 * @author cc
 * @since 2018-12-30
 */
@Service
public class AuthorityServiceImpl extends ServiceImpl<AuthorityMapper, Authority> implements IAuthorityService {

	@Override
	public List<Authority> listByResourceId(String resourceId) {
		return baseMapper.selectListByResourceId(resourceId);
	}

	@Override
	public List<Authority> listByUserId(String userId) {
		return baseMapper.selectListByUserId(userId);
	}

}
